package hdd.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cache.concurrent.ConcurrentMapCacheManager;
import org.springframework.cache.support.CompositeCacheManager;
import org.springframework.context.EnvironmentAware;
import org.springframework.context.annotation.*;
import org.springframework.core.env.Environment;
import org.springframework.data.redis.cache.RedisCacheManager;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
import org.springframework.data.redis.connection.jredis.JredisConnectionFactory;
import org.springframework.data.redis.connection.jredis.JredisPool;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.JdkSerializationRedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

import java.util.LinkedList;

@Configuration
@Import({RmiBeanConfig.class,DataSourceConfig.class ,JMSConfig.class ,CacheConfig.class,AMQPConfig.class})
@PropertySource( {"classpath:setting.properties"} )
@ComponentScan(basePackages = {"hdd.serivce.impl"})
public class RootConfig implements EnvironmentAware {

    @Autowired
    private Environment environment;



    @Override
    public void setEnvironment(Environment environment) {
        this.environment = environment;
    }
}
